const TokenKey = 'Admin-Token'

export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}

export function getUser() {
  return uni.getStorageSync('userInfo')
}
export function setUser(user) {
	uni.setStorageSync('isLogin', true)
  return uni.setStorageSync('userInfo', user)
}
export function removeUser() {
	uni.removeStorageSync('isLogin')
  return uni.removeStorageSync('userInfo')
}


